<div id="mod-queue" class="mod-menu">
    <ul>
        <li class="<eq name="status" value="0">current</eq>"><a href="{:U('Team/setting',array('tid'=>$team['team_id'],'type'=>$type,'status'=>0))}">{$Think.lang.team_pending_users}</a></li>
        <li class="<eq name="status" value="1">current</eq>"><a href="{:U('Team/setting',array('tid'=>$team['team_id'],'type'=>$type,'status'=>1))}">{$Think.lang.team_approved_users}</a></li>
        <li class="<eq name="status" value="-1">current</eq>"><a href="{:U('Team/setting',array('tid'=>$team['team_id'],'type'=>$type,'status'=>-1))}">{$Think.lang.team_disapproved_users}</a></li>
    </ul>
</div>

<form method="POST" action="{:U('Team/userModeration')}">
	<notempty name="users">
	<div class="container">
	    <table class="tb tb-list">
	        <tr>
	        	<th></th>
	            <th>UID</th>
	            <th>{$Think.lang.username}</th>
	            <th>{$Think.lang.point_count}</th>
	            <th>{$Think.lang.question_count}</th>
	            <th>{$Think.lang.answer_count}</th>
	            <th>{$Think.lang.best_answer_count}</th>
	            <th>{$Think.lang.create_time}</th>
	        </tr>
	        <volist name="users" id="vo">
	        <tr>
	        	<td class="mark"><input type="checkbox" name="mods[]" value="{$vo.user_id}" /></td>
	            <td>{$vo.user_id}</td>
	            <td><a href="{$vo.user_id|format_user_url=$vo['username']}" title="{$vo.username}">{$vo.username}</a></td>
	            <td>{$vo.point_count}</td>
	            <td>{$vo.question_count}</td>
	            <td>{$vo.answer_count}</td>
	            <td>{$vo.best_answer_count}</td>
	            <td>{$vo.create_time|format_date}</td>
	        </tr>
	        </volist>
	    </table>
	</div>
	<div class="pagination">{$pagination}</div>
	<p>
	    <input id="mark-all" type="checkbox" name="mark_all" value="1" />
	    <in name="status" value="0,-1">
	    <input name="approve" class="button" type="submit" value="{$Think.lang.approve}" />
	    </in>
	    <in name="status" value="0">
	    <input name="disapprove" class="alt-button" type="submit" value="{$Think.lang.disapprove}" />
	    </in>
	    <in name="status" value="1">
	    <input name="remove" class="alt-button" type="submit" value="{$Think.lang.remove}" />
	    </in>
	    <input name="tid" type="hidden" value="{$team.team_id}" />
	</p>
	<else/>
	<p class="no-results">{$Think.lang.team_no_users}</p>
	</notempty>
</form>

<load href="__PUBLIC__/Js/jquery.selectAll.js" />
<script type="text/javascript">
$(function(){
    $('#mark-all').selectAll({range:'.mark'});
});
</script>